# 初始化
from pathlib import Path

from service.consolidators.steel.consolidator import Consolidator, Bidder

dira = Path("F:/招标/new/3月/3月/钢材")
consolidator = Consolidator(
    tender_document=dira / "招标文件.xlsx",
    summary_document=dira / "汇总表.xlsx",
)

# 加载招标基准数据
consolidator.load_tender()

# 添加投标数据
bidders = [
    Bidder(name="供应商A", document=dira / "供应商A.xlsx"),
    Bidder(name="供应商B", document=dira / "供应商B.xlsx"),
]
consolidator.add_bids(bidders)

# 保存结果
consolidator.save()
